package com.basic.business.order.controller;

import com.basic.business.order.service.ITOrdersTimeLineService;
import com.basic.common.core.controller.BaseController;
import com.basic.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/business/ordersTimeLine")
public class TOrdersTimeLineController extends BaseController {

    @Resource
    private ITOrdersTimeLineService timeLineService;

    @GetMapping("/getTimeLineBySid/{sid}")
    public AjaxResult getTimeLineBySid(@PathVariable("sid") String sid) {
        return success(timeLineService.getTimeLineBySid(sid));
    }

}
